Ubuntu 14.04
Sponsored Link

Install Ruby 2.3
2016/01/26
 
The version of Ruby in 14.04 repository is 1.9 or 2.0 but Install 2.3 if you need.
[1] Install Ruby 2.3 from PPA.
root@dlp:~#
apt-get -y install software-properties-common

root@dlp:~#
apt-add-repository ppa:brightbox/ruby-ng

root@dlp:~#
apt-get -y install ruby2.3
root@dlp:~#
ruby -v

ruby 2.3.0p0 (2015-12-25 revision 53290) [x86_64-linux-gnu]
[2] If you installed multiple version of Ruby and if you'd like to switch to another version of it, Do like follows.
root@dlp:~#
update-alternatives --config ruby

There are 2 choices for the alternative ruby (providing /usr/bin/ruby).

  Selection    Path              Priority   Status
------------------------------------------------------------
* 0            /usr/bin/ruby2.3   51        auto mode
  1            /usr/bin/ruby2.0   50        manual mode
  2            /usr/bin/ruby2.3   51        manual mode

# specify number of the one you'd like to use
Press enter to keep the current choice[*], or type selection number:

root@dlp:~#
update-alternatives --config gem

There are 2 choices for the alternative gem (providing /usr/bin/gem).

  Selection    Path             Priority   Status
------------------------------------------------------------
* 0            /usr/bin/gem2.3   181       auto mode
  1            /usr/bin/gem2.0   180       manual mode
  2            /usr/bin/gem2.3   181       manual mode

# specify number of the one you'd like to use
Press enter to keep the current choice[*], or type selection number:
 
Tweet